package dblog.test;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;

@Controller
public class AnnotatedController {

    @RequestMapping("/controller/annotate")
    public ModelAndView testMe(HttpServletRequest arg0, HttpServletResponse arg1) throws Exception {
		Map<String,String> data = new HashMap<String, String>();
		data.put("info","HELLO TO VELOCITY SPRING APPLICATION");
        return new ModelAndView("test",data);
	}
}
